﻿@using CubicFWNet.Data.ViewModal
@{
    var list = ViewBag.GuidList as List<InvoiceView>;
    Layout = "~/Views/Shared/_InfoPage.cshtml";
}
<section class="content" style="overflow-x: scroll">
    <div class="box box-solid" style="width: 1500px;">
        <!-- /.box-header -->
        <div class="box-body">
            <div class="row">
                <div style="margin-left: 25px;">
                    <span id="historyBack" class="btn btn-primary submitbtn">返回</span>
                    <span class="btn btn-primary submitbtn" id="printBack" onclick="printBack()" style="margin-left: 25px; display: inline-block">打印</span>
                </div>
                <div id="queryDlgBack" style="width: 1480px; margin-left: 25px; margin-top: 30px;">
                    <table class="" cellspacing="0" cellpadding="0" width="1480" align="center" border="1" style="font-size: 18px;">
                        <tbody>
                            <tr style="text-align: center; height: 37px;">
                                <td colspan="16">派&nbsp;&nbsp;车&nbsp;&nbsp;单</td>
                            </tr>
                            <tr style="text-align: center; height: 37px;">
                                <td>申请人</td>
                                <td>日期</td>
                                <td>送货要求</td>
                                <td>内容</td>
                                <td>发货单号</td>
                                <td>货物总值</td>
                                <td>客户名称</td>
                                <td>司机</td>
                                <td>起始</td>
                                <td>到达</td>
                                <td>公里</td>
                                <td>高速</td>
                                <td>停车</td>
                                <td>货运</td>
                                <td>运输</td>
                                <td>备注</td>
                            </tr>
                            @if (list != null)
                            {
                                foreach (var item in list)
                                {
                                    <tr style="text-align: center; height: 37px;">
                                        <td>@item.CreatorName</td>
                                        <td>@item.ApplyTime.ToString("yyyy-MM-dd")</td>
                                        <td>@item.DliveryDemand</td>
                                        <td>送货</td>
                                        <td>@item.Number</td>
                                        <td>@item.Worth</td>
                                        <td>@item.TakeCompany</td>
                                        
                                        @for (int i = 0; i < 9; i++)
                                        {
                                            <td></td>
                                        }
                                    </tr>
                                }
                            }
                    </table>
                </div>
            </div>
        </div>
    </div>
</section>
@section Scripts {
    <script src="~/Scripts/jquery.jqprint-0.3.js"></script>
    <script>
        $("#historyBack").click(function () {
            window.history.go(-1);  //返回上一页
            //window.history.back();  //返回上一页
        });
        function printBack() {
            $('#queryDlgBack').jqprint();
        }
    </script>
}